<?php
@session_start(); 
global $is_index;
if ($is_index <> true && (!isset($_SESSION["user"]) || !in_array("application_access", $_SESSION["user_roles"]))) die("Access Denied.");
?>